import { defineStore } from "pinia";
import piniaPersistConfig from "@/stores/helper/persist";

export const useGoodsStore = defineStore({
  id: "goods-info",
  state: (): any => ({
    orderInfo: {}
  }),
  getters: {},
  actions: {
    setOrderInfo(params: any) {
      this.orderInfo = params;
    },
    clear() {
      this.orderInfo = {};
    }
  },
  persist: piniaPersistConfig("goods-info")
});
